project(jduppy2)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/grammar/)


SET(jduppy2_srcs
    main.cpp
    TestParser.cpp
)

SET(jduppy2_MOC_HDRS
    TestParser.h
)

QT4_WRAP_CPP(jduppy2_MOC_SRCS ${jduppy2_MOC_HDRS})

add_subdirectory(grammar)
add_subdirectory(astng)
add_subdirectory(pyeditor)

ADD_EXECUTABLE(jduppy ${grammar_srcs} ${jduppy2_srcs} ${jduppy2_MOC_SRCS})
TARGET_LINK_LIBRARIES(jduppy ${QT_QTCORE_LIBRARY})
TARGET_LINK_LIBRARIES(jduppy ${QT_QTGUI_LIBRARY})
TARGET_LINK_LIBRARIES(jduppy ${QT_QTTEST_LIBRARY})
TARGET_LINK_LIBRARIES(jduppy python3)
TARGET_LINK_LIBRARIES(jduppy grammar)
TARGET_LINK_LIBRARIES(jduppy pyeditor)
TARGET_LINK_LIBRARIES(jduppy astng)
INSTALL(TARGETS jduppy DESTINATION bin)

